#ifndef H_BIGINTEGERPTRCOUNTER
#define H_BIGINTEGERPTRCOUNTER

#include "bigInteger.h"

struct BigIntegerPtrCounter
{
public:
	explicit BigIntegerPtrCounter(BigInteger * pointer = 0);			
	BigIntegerPtrCounter& operator ++();
	BigIntegerPtrCounter& operator --();
	BigInteger & operator *() const;
	BigInteger * operator ->() const;
	bool isNull();	
	BigInteger * ptr;
private:		
	int count;
};

#endif
